define hook-stop
  set $ip = ($pc & 0xffff)
  x/i $ip
end

define hookpost-command
  if $_is_command("layout")
    set $ip = ($pc & 0xffff)
    x/i $ip
  end
end
